package cn.wolfcode.service;

import cn.wolfcode.domain.Permission;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface IPermissionService {

    int deleteByPrimaryKey(Long id);

    int insert(Permission record);

    Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    int updateByPrimaryKey(Permission record);

    PageInfo<Permission> query(QueryObject qo);

    void batchInsert(@Param("savedPermissions") Set<Permission> savedPermissions);

    List<Permission> queryPermissionByRoleId(Long roleId);

    List<String> queryPermissionByEmployeeId(Long employeeId);
}
